Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(DataTable): Don't mix controlled and uncontrolled filter #7104

Merged

Conversation

Et7f3
Copy link
Contributor

@Et7f3 Et7f3 commented Sep 2, 2024

In a components where props.filters is not set because user rely on generated filter object: if a column filter is applied, a global filter is applied and then the global filter set to "" the props.filter is used (null) instead of the generated filter (object with only one column defined).

The generated filter object before global filtering enter in action has no global key: so we revert this modifications.

Fix #7103

In a components where `props.filters` is not set because user rely on generated filter object: if a column filter is applied, a global filter is applied and then the global filter set to "" the `props.filter` is used (null) instead of the generated filter (object with only one column defined).

The generated filter object before global filtering enter in action has no `global` key: so we revert this modifications.
Copy link

vercel bot commented Sep 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
primereact ⬜️ Ignored (Inspect) Visit Preview Sep 2, 2024 11:41pm
primereact-v9 ⬜️ Ignored (Inspect) Visit Preview Sep 2, 2024 11:41pm

@melloware
Copy link
Member

Did you retest #3819 to make sure that scenario still works?

@Et7f3
Copy link
Contributor Author

Et7f3 commented Sep 3, 2024

Did you retest #3819 to make sure that scenario still works?

Yes because my bug follow the same reproduction steps. The previous fix do reset too much (columns filter).

@melloware melloware merged commit cfe5b03 into primefaces:master Sep 3, 2024
5 of 6 checks passed
@Et7f3 Et7f3 deleted the fix-don't-mix-(un)controlled-filter branch September 3, 2024 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DataTable: empyting global filter reset column's filter for uncontrolled filter
2 participants